home *** CD-ROM | disk | FTP | other *** search
- Path: nntp.crl.com!usenet
- From: sean@crl.com (Sean Kenefick)
- Newsgroups: comp.lang.c++
- Subject: Using MFC with C
- Date: Mon, 29 Jan 1996 19:31:35 GMT
- Organization: CRL Dialup Internet Access
- Message-ID: <4ej7el$j3a@nntp.crl.com>
- NNTP-Posting-Host: crl10.crl.com
- X-Newsreader: Forte Free Agent 1.0.82
-
-
- OK -- a lamo question.
-
- I'm a C programmer just now learning C++.
-
- I have an exisiting project -- a big one -- that has been written in
- C. I want to add a new C++ module with a newly created class which
- uses, but isn't derived from, a couple of MFC classes (CString for
- example). I *definitely* don't want to rewrite all my C code. Is it
- possible to call a class' method in a C++ module from an exisiting
- external C module? How should they be declared? I tried using extern
- and extern "C" but the compiler just threw it back at me.
-
- BTW: I can't put all these things in the same module because "AFX.H"
- and "WINDOWS.H" conflict with each other. The C code won't compile
- with the "AFX.H" and vice-versa.
-
- Any help would be greatly appreciated.
-
-
-